The C RTL supports an X/Open standard-compliant definition of
the stat structure and associated definitions. To use these new
definitions, applications must compile with the _USE_STD_STAT
feature-test macro defined. Use of _USE_STD_STAT specifies long
(32-bit) GIDs.
When compiled with _USE_STD_STAT, the stat structure includes
these changes:
o Type ino_t is defined as an unsigned quadword int. Without _
USE_STD_STAT, it is an unsigned short.
o Type dev_t is defined as a 64-bit integer. Without _USE_STD_
STAT, it is a 32-bit character pointer.
o Type off_t is defined as a 64-bit integer, as if the _
LARGEFILE macro has been defined. Without _USE_STD_STAT, off_t
is a 32-bit integer.
o Fields st_dev and st_rdev will have unique values per device.
Without _USE_STD_STAT, uniqueness is not assured.
o Fields st_blksize and st_blocks are added. Without _USE_STD_
STAT, these fields do not exist.